<%@page import="util.DBUtil"%>
<%@page import="com.dao.NbaDao"%>
<%@page import="com.bean.Nba" %>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>nba球员信息</title>
    <style>
    	td{
    		white-space: nowrap;
    		align:center;
    	}
    	
    </style>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
  </head>
  
  <body>
  	
    <form action="NbaServlet?act=14" method="post">
    	<input id="name" name="NPlayer" placeholer="按姓名查询">
    	<input type="submit" value="查询">
    
    <table border="1" cellspacing="3" >
    	<tr align="center">
    		<td>编号</td>
    		<td>球员</td>
    		<td>球队</td>
    		<td>场次</td>
    		<td>先发</td>
    		<td>助功</td>
    		<td>分钟</td>
    		<td>三分命中率</td>
    		<td>罚球</td>
    		<td>抢断</td>
    		<td>失误</td>
    	</tr>
    	<%
    	List<Nba> list = (List<Nba>)session.getAttribute("sss");
    	if(list != null){
        for(int j = 0;j < list.size();j++){ %>
    		<tr align="center">
    			<td><%=list.get(j).getNQiudb()%></td>
    			<td><%=list.get(j).getNPlayer()%></td>
    			<td><%=list.get(j).getNTeam()%></td>
    			<td><%=list.get(j).getNChangc()%></td>
    			<td><%=list.get(j).getNXianf()%></td>
    			<td><%=list.get(j).getNZhug()%></td>
    			<td><%=list.get(j).getNMinute()%></td>
    			<td><%=list.get(j).getNThreepiont()%></td>
    			<td><%=list.get(j).getNFaq()%></td>
    			<td><%=list.get(j).getNQiangd()%></td>
    			<td><%=list.get(j).getNError()%></td>
    			<td><a href="NBAListXiangQ.jsp?sid=${list.NPlayer}"><img src="img/xiangqing.ico" width="20px" height="20px"/></a></td>
    			<td>添加</td>
    		</tr>
    		<% }
    		
   		}%>
   		<p class="paging">
              <a href="NbaServlet?page=1&act=14">&lt;&lt; 首页 </a>
              <a href="NbaServlet?page=${pageNow-1 }&act=14">    &lt; 上一页 </a>             
              <a href="NbaServlet?page=${pageNow+1}&act=14">下一页 &gt;</a>
       </p>
    </table>
    </form>
  </body>
</html>
